package operation;

import book.Book;
import book.BookList;

public class Exitbook implements Operate{
    @Override
    public void work(BookList books) {
        System.out.println("退出系统.....");
        int count=books.getUsedbooks();
        for(int i=0;i<count;i++)
        {
           books.setBooks(i,null); //
        }
        books.setUsedbooks(0); //将有效书籍数量 制为空
        System.exit(0);
    }
}
